﻿using System;

namespace Wisej.Web.Ext.Syncfusion2.Test.Component
{
	public partial class Toolbar : TestBase
	{
		public Toolbar()
		{
			InitializeComponent();

			this.toolbar1.Instance.clicked += new WidgetEventHandler(toolbar1_WidgetEvent);
		}

		private void toolbar1_WidgetEvent(object sender, WidgetEventArgs e)
		{
			AlertBox.Show(
				$"<b>{e.Type}</b><br/>{JSON.Stringify(e.Data)}",
				MessageBoxIcon.Information);

			Application.Play(MessageBoxIcon.Information);
		}
	}
}
